//
//  Home_DetailVC.m
//  HappyRent
//
//  Created by CoderYee on 2017/4/7.
//  Copyright © 2017年 内圈科技. All rights reserved.
//

#import "Home_DetailVC.h"
#import "Home_DetailUIVC.h"
#import "Home_DetailBottomView.h"  //底部聊天视图
@interface Home_DetailVC ()
{
    
    Home_DetailUIVC  *_detailUIVC;
    
}
@end

@implementation Home_DetailVC

-(void)addNavbarView{
    
    [super addNavbarView];
    self.title=@"民宿详情";
    
}
-(void)addOwnViews{
    
    [super addOwnViews];
    [self  addContainView];
    [self  addBottomView];
    
}
-(void)configOwnViews{
    
    [super configOwnViews];
}
-(void)addContainView{
    
    _detailUIVC=[[Home_DetailUIVC alloc] init];
    [_detailUIVC.view setFrame:CGRectMake(0, 0, kMainScreenWidth,  KcontentViewHeight-KNavigationBarHeight)];
    [self.view addSubview:_detailUIVC.view];
    [self addChildViewController:_detailUIVC];
   
}
-(void)addBottomView{
    
    Home_DetailBottomView *bottomView=[[Home_DetailBottomView alloc] initWithFrame:CGRectMake(0, KcontentViewHeight-KNavigationBarHeight, kMainScreenWidth, KNavigationBarHeight)];
    //点击事件
    [bottomView.clickSubject subscribeNext:^(id  _Nullable x) {
        
        
    }];
    
    [self.view addSubview:bottomView];
}
@end
